package top.v5it.japi.plus.core.spring.web.interceptor;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * 注册{@link JapiResponseBodyWrapperAdvice}
 *
 * @author zhanpu
 * @date 20-11-20
 * @see JapiResponseBodyWrapperAdvice
 */
public class JapiResponseBodyWrapperAdviceConfigurationSelector implements ImportSelector {

    private static final String RESPONSE_BODY_WRAPPER_CLASS_NAME = "top.v5it.japi.plus.core.spring.web.interceptor.JapiResponseBodyWrapperAdvice";

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{RESPONSE_BODY_WRAPPER_CLASS_NAME};
    }
}
